<template>
    <NavBar />
  <router-view/>
</template>

<script>
 import NavBar from './components/NavBar.vue'
 import "bootstrap/dist/css/bootstrap.min.css"
 import "bootstrap/dist/js/bootstrap"
 //import $ from 'jquery'
export default{
    components:{
      NavBar
    },

   setup(){
   /*$.ajax({
       url:"http://127.0.0.1:3000/user/account/token/",
       type:"post",
       data:{
        username:'lhy',
        password:'plhy',
       },
       success(resp){
         console.log(resp);
       },
       error(resp){
         console.log(resp);
       }
     });*/
   
   
   /*$.ajax({
       url:"http://127.0.0.1:3000/user/account/info/",
       type:"get",
       headers:{
         Authorization:"Bearer "+"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJmOTgwZjkwOGQxNDI0NDVlOGI1MzkxZjgxYjRmNmRkNSIsInN1YiI6IjEiLCJpc3MiOiJzZyIsImlhdCI6MTY4NzMyMDA0OCwiZXhwIjoxNjg4NTI5NjQ4fQ.SzvYtGES0-utwWxJjVswax9TFQsSW2Ie6GIs7eI-JHk"
       }, 

       success(resp){
         console.log(resp);
       },
       error(resp){
         console.log(resp);
       }
   });*/

   /*$.ajax({
       url:"http://127.0.0.1:3000/user/account/register/",
       type:"post",
       data:{
        username:'gxy',
        password:'pgxy',
        confirmedPassword:'pgxy',
       },
      
       success(resp){
         console.log(resp);
       },
       error(resp){
         console.log(resp);
       }
   });*/

  }
}

</script>

<style>
body{
  background-image: url("@/assets/images/beijing.png");
  background-size: cover;
}
</style>


